Replication data and R code for figures and regressions in Noah’s Ark on Rising Seas: Climate Change, Biodiversity Loss and Public Adaptation Costs in the United States

1. Replication Code 
- R code for regressions and figures
- Commented code gives code assembling data frame from intermediate data files
- Change file path names and working directory to save / read in files
- Required libraries: tidyverse, clusterSEs, lfe, MASS, plyr, reshape2, stargazer, lubridate

2. speciesdata.csv

Conservation status for North American species from NatureServe.
Columns:
code - unique species ID
taxon - taxonomic group
family - taxonomic family
order - taxonomic order
name - scientific name
listed - binary listing variable if ever listed between 1993 and 2016
status - NatureServe assessed conservation status within North America
status_global - NatureServe assessed global conservation status 
ngram_science - standardized Google Ngram for scientific name
ngram_common_flag - binary variable indicating problematic (i.e. different meanings) of species common name
ngram_common - standardized Google Ngram for common name
ngenus - number of species in genus
evidist - evolutionary distinctiveness
ge - global endangerment
edge - evolutionary distinctivenss and global endangerment
probs - binary identifier for species where listing status does not match NatureServe assessment
(i.e species were delisted at time of assessment or listed more than 10 years after assessment)

3. spendingdata.csv

ESA species-level spending from USFWS and NMFS congressional reports, 1993-2016
Columns:
code - unique species ID
year - year of spending
name - scientific name
taxon, family, order, genus - taxonomic information
status_species - assessed NatureServe conservation status, North America
status_global - assessed NatureServe conservation status, Global
spending - reported conservation spending, in 2017 dollars
region - lead USFWS region
region_num - number of USFWS regions where species is present
priority - USFWS or NMFS priority number - lower numbers are higher priority. ordinal variable
priority_threat, priority_potential, priority_rarity - priority number components, ordinal, higher values imply higher priority
conflict - USFWS code indicating conservation is in conflict with economic development
status - listing status, T=threatened, E=endangered
datelisted - year listed
evidist - evolutionary distinctiveness
ge - global endangerment
edge - evolutionary distinctivenss and global endangerment
rangearea - USFWS given range area, in km2
CommonNameFlag - binary variable indicating problematic (i.e. different meanings) of species common name
ngrams_science - rolling mean of lagged 5-year standardized scientific ngram value
ngrams_common - rolling mean of lagged 5-year standardized common name ngram
yearssincelisting - year minus datelisted
extinct - binary variable indicating whether assessed as extinct or probably extinct


